In case no single theme could be loaded successfully, the runtime class
failed to properly invoke the `error500()` method, which is only available
through the passed environment at this point.
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit
9763e3e9d320b5128f374117d0ff95ab8cc7f626)
}
if (!media)
- error500(`Unable to render any theme header template, last error was:\n${status}`);
+ env.dispatcher.error500(`Unable to render any theme header template, last error was:\n${status}`);
}
self.env.media = media;